from django.urls import path
from apps.houses.views import GetHomeInfoView, MyHomeInfoView, ImageInfoView, \
    IndexHomeView, MyHomeListView

urlpatterns = [
    # 房屋数据搜索
    # path('api/v1.0/houses', GetHomeInfoView.as_view()),
    # 发布房源
    path('api/v1.0/houses', MyHomeInfoView.as_view()),
    # 我的房屋列表
    path('api/v1.0/user/houses', MyHomeListView.as_view()),
    # 上传房源图片
    path('api/v1.0/houses/<int:house_id>/images', ImageInfoView.as_view()),
    # 首页房屋推荐
    path('api/v1.0/houses/index', IndexHomeView.as_view()),


]
